\documentclass[handout]{beamer}

\usepackage{pgfpages}
\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm]
%\setjobnamebeamerversion{slides.beamer}
\input{slides.tex}
